﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="RequisitosVaga.aspx.cs" Inherits="PortalCurriculo.WebUI.Selecionadores.RequisitosVaga" %>

<%@ Register Assembly="PortalCurriculo.Util.Controls" Namespace="PortalCurriculo.Util.Controls.Wizard"
    TagPrefix="portal" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register TagPrefix="portal" Namespace="PortalCurriculo.Util.CustomControls" Assembly="PortalCurriculo.Util.CustomControls" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="HomePage" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="PageTitle" runat="server">
    <asp:Label runat="server" ID="lblPageTitle" Text="Requisitos para vaga" CssClass="pageTitle" />
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="MainContent" runat="server">
    <asp:UpdatePanel runat="server" ID="updVaga">
        <ContentTemplate>
            <!-- Mostrar dados básicos da vaga para identificação da mesma -->
            <table cellspacing="10px" width="100%">
                <tr>
                    <td colspan="3">
                        <asp:Label ID="lblDeficiente" runat="server" Text="Portador de necessidades especiais?" />
                    </td>
                </tr>
                <tr>
                    <td colspan="3">
                        <asp:RadioButton runat="server" ID="radDeficienciaIndiferente" GroupName="Deficiencia"
                            Text="Indiferente" Checked="true" />
                        <asp:RadioButton runat="server" ID="radDeficienciaSim" GroupName="Deficiencia" Text="Sim" />
                        <asp:RadioButton runat="server" ID="radDeficienciaNao" GroupName="Deficiencia" Text="Não" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="lblMinimoExperiencia" runat="server" Text="Experiência mínima" />
                    </td>
                    <td>
                        <asp:TextBox ID="txtTempoExperienciaMinimo" runat="server" Width="80px" />
                    </td>
                    <td>
                        <asp:DropDownList runat="server" ID="ddlTipoExperienciaMinimo">
                            <asp:ListItem Text="Mês(es)" Value="M" />
                            <asp:ListItem Text="Ano(s)" Value="A" />
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="lblMaximoExperiencia" runat="server" Text="Experiência máxima" />
                    </td>
                    <td>
                        <asp:TextBox ID="txtTempoExperienciaMaximo" runat="server" Width="80px" />
                    </td>
                    <td>
                        <asp:DropDownList runat="server" ID="ddlTipoExperienciaMaximo">
                            <asp:ListItem Text="Mês(es)" Value="M" />
                            <asp:ListItem Text="Ano(s)" Value="A" />
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td colspan="3">
                        <asp:CheckBox runat="server" ID="chkEmpresaAberta" Text="Empresa aberta" />
                    </td>
                </tr>
                <tr>
                    <td colspan="3">
                        <asp:LinkButton runat="server" ID="lnkSalvar" Text="Salvar" OnClick="lnkSalvar_Click" />
                    </td>
                </tr>
            </table>
            <asp:Panel ID="pnlIdioma" runat="server" GroupingText="Idiomas">
                <table width="100%" style="margin-top: -5px; margin-left: -5px;">
                    <tr style="height: 35px">
                        <td>
                            <asp:Label ID="lblIdioma" runat="server" Text="Idioma" />
                        </td>
                        <td colspan="2">
                            <asp:DropDownList runat="server" ID="ddlIdioma" Width="200px" AutoPostBack="true"
                                OnSelectedIndexChanged="ddlIdioma_SeletedIndexChanged" />
                            &nbsp;
                            <asp:Label ID="lblOutro" runat="server" Text="Outro idioma" Visible="false" />
                            <asp:TextBox ID="txtOutroIdioma" runat="server" Width="150px" Visible="false" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Label ID="lblNivel" runat="server" Text="Nível" />
                        </td>
                        <td>
                            <asp:DropDownList runat="server" ID="ddlNivel" Width="110px" />
                            <asp:Label ID="lblTipo" runat="server" Text="Tipo" />
                            <asp:DropDownList runat="server" ID="ddlTipo">
                                <asp:ListItem Text="Imprescindível" Value="true" />
                                <asp:ListItem Text="Preferível" Value="false" />
                            </asp:DropDownList>
                        </td>
                        <td>
                            <asp:LinkButton ID="lnkAdicionarIdioma" OnClick="lnkAdicionarIdioma_Click" runat="server"
                                Text="Adicionar" />
                        </td>
                    </tr>
                </table>
                <br />
                <portal:ListView ID="lsvIdioma" runat="server" ItemPlaceholderID="phItens" OnItemDataBound="lsvIdioma_ItemDataBound">
                    <LayoutTemplate>
                        <table width="100%">
                            <tr>
                                <td style="width: 40%; text-align: center;">
                                    <asp:Label runat="server" ID="lblIdioma" Text="Idioma" />
                                </td>
                                <td style="width: 40%; text-align: center;">
                                    <asp:Label runat="server" ID="lblNivel" Text="Nível" />
                                </td>
                                <td style="width: 30%; text-align: center;">
                                    <asp:Label runat="server" ID="lblTipo" Text="Imprescindível" />
                                </td>
                                <td style="width: 15px;">
                                </td>
                                <asp:PlaceHolder ID="phItens" runat="server" />
                        </table>
                    </LayoutTemplate>
                    <ItemTemplate>
                        <tr>
                            <td>
                                <asp:Label runat="server" ID="lblIdioma" />
                            </td>
                            <td>
                                <asp:Label runat="server" ID="lblNivel" />
                            </td>
                            <td>
                                <asp:Label runat="server" ID="lblTipo" />
                            </td>
                            <td>
                                <asp:ImageButton runat="server" ID="imbExcluir" ImageUrl="~/Files/Layout/Excluir.gif"
                                    OnClientClick="javascript:return confirm('Tem certeza que deseja excluir?');"
                                    OnClick="imbExcluir_Click" />
                            </td>
                        </tr>
                    </ItemTemplate>
                    <EmptyDataTemplate>
                        <asp:Label runat="server" ID="lblVazio" Text="Não há idiomas cadastrados" CssClass="failureNotification" />
                    </EmptyDataTemplate>
                </portal:ListView>
            </asp:Panel>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
